<script setup lang="ts">
import {useRoute} from "vue-router"
import {onMounted} from "vue"
const route = useRoute() //路由信息
onMounted(()=>{
    console.log(route.query)
    console.log(route.query.id)
})


</script>
<template>
   <div>
       关于组件
   </div>
</template>